import request from '@/utils/request'

// 查询客服列表
export function listDKefu(query) {
  return request({
    url: '/video/DKefu/list',
    method: 'get',
    params: query
  })
}

// 查询客服详细
export function getDKefu(id) {
  return request({
    url: '/video/DKefu/' + id,
    method: 'get'
  })
}

// 新增客服
export function addDKefu(data) {
  return request({
    url: '/video/DKefu',
    method: 'post',
    data: data
  })
}

// 修改客服
export function updateDKefu(data) {
  return request({
    url: '/video/DKefu',
    method: 'put',
    data: data
  })
}

// 删除客服
export function delDKefu(id) {
  return request({
    url: '/video/DKefu/' + id,
    method: 'delete'
  })
}
